package com.gxa.order.service;

import dto.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

@FeignClient(value = "upload-service")
@RequestMapping(value = "upload",consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
public interface UploadService {


    @PostMapping("do")
    ResultDTO upload(MultipartFile file);


}


